/**
 * Created by richie on 16/1/21.
 */
(function($){
    // 你好啊,导出
    $.extend(FR.WritePane.prototype, {
        exportReportToXML : function() {
            if (this.fireEvent("beforexml") === false) {
                return;
            }
            var self = this;
            this.saveReport(function () {
                window.location = FR.servletURL + "?op=export&sessionID=" + self.currentSessionID + "&format=xml";
                FR.progressBar(self.currentSessionID,"xml");
                self.fireEvent("afterxml");
            });
        }
    });
    $.extend(FR.PagePane.prototype, {
        exportReportToXML : function() {
            if (this.fireEvent("beforexml") === false) {
                return;
            }
            window.location = FR.servletURL + "?op=export&sessionID=" + this.currentSessionID + "&format=xml";
            FR.progressBar(this.currentSessionID, "xml");
            this.fireEvent("afterxml");
        }
    });
})(jQuery);